 /*
  * Copyright (c) 2021, 2023, yishun.cn All rights reserved.
  *
  */
 package cn.shun.mapper;

 import cn.shun.entity.Student;
 import org.apache.ibatis.annotations.Insert;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Options;

 import java.util.Map;

 /**
  * <p>Project: MyBatis2023 - StudentMapper
  * <p>Powered by yishun On 2023-01-30 10:51:34
  *
  * @author yishun [2465734101@qq.com]
  * @version 1.0
  * @since 17
  */
 @Mapper
 public interface StudentMapper {
  @Insert("insert into t_student value(#{id},#{name})")
  //@Options(useGeneratedKeys = true,keyColumn = "student_id",keyProperty = "id")
  int add(Student student);
  @Insert("insert into t_student value(#{id},#{name})")
  //@Options(useGeneratedKeys = true,keyColumn = "student_id",keyProperty = "id")
  int save(Map<String, Object> map);



 }
